/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class SolutionCriteria extends AbstractORMCriteria {
	public final IntegerExpression idSolution;
	public final StringExpression solution;
	
	public SolutionCriteria(Criteria criteria) {
		super(criteria);
		idSolution = new IntegerExpression("idSolution", this);
		solution = new StringExpression("solution", this);
	}
	
	public SolutionCriteria(PersistentSession session) {
		this(session.createCriteria(Solution.class));
	}
	
	public SolutionCriteria() throws PersistentException {
		this(orm.Taller1PDSPersistentManager.instance().getSession());
	}
	
	public DiagnoseCriteria createDiagnoseidDiagCriteria() {
		return new DiagnoseCriteria(createCriteria("diagnoseidDiag"));
	}
	
	public Solution uniqueSolution() {
		return (Solution) super.uniqueResult();
	}
	
	public Solution[] listSolution() {
		java.util.List list = super.list();
		return (Solution[]) list.toArray(new Solution[list.size()]);
	}
}

